package com.bw.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bw.entity.Bing;
import com.bw.form.UserQueryForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.entity.SysOrder;
import com.bw.mapper.SysOrderMapper;

@Service
public class SysOrderService extends ServiceImpl<SysOrderMapper, SysOrder> {

    @Autowired
    SysOrderMapper sysOrderMapper;

    public IPage<SysOrder> getReportPage(Page page, UserQueryForm query) {
        return sysOrderMapper.selectAll(page, query);

    }

    public List<Bing> getEcharts(UserQueryForm query) {

        return sysOrderMapper.getEcharts(query);

    }

    public List<String> getYM() {
        return sysOrderMapper.getYM();
    }
}
